package com.ruoyi.business.controller.cumtomize;

import com.ruoyi.business.dto.PeopleDto;
import com.ruoyi.business.service.CustomizeAnnotationService;
import com.ruoyi.common.log.annotation.Log;
import com.ruoyi.common.log.enums.BusinessType;
import com.ruoyi.common.log.enums.OperatorType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Wu Yuwei
 * @Description: 自定义注解
 * @date 2023/1/4 12:23
 */
@RequestMapping("customizeAnnotation")
@RestController
public class CustomizeAnnotationController {

    @Autowired
    private CustomizeAnnotationService customizeAnnotationService;

    @Log(title="ruoyi-business",businessType=BusinessType.IMPORT,operatorType= OperatorType.MOBILE,
            isSaveRequestData=false,isSaveResponseData = false)
    @GetMapping("/queryPeopleById")
    PeopleDto queryPeopleById(@RequestParam("id") String id){
       return customizeAnnotationService.queryPeopleById(id);
    }

}
